home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 7 / Eagles_Nest_Mac_Collection_Disc_7.TOAST / Internet⁄Other Nets / IntStartKit / InterSLIP Docs.rsrc / TEXT_134.txt < prev    next >
Text File  |  1993-09-02  |  3KB  |  48 lines

  1. Application Programming Interface
  2. (API) 
  3.  
  4.  
  5. The following information is supplied without warranty of any kind. 
  6. InterCon Systems is not responsible for the results of using or misusing the API, and the API is subject to change without notice at any time. It assumes working knowledge of the Macintosh device manager. Technical support is not available for the API. 
  7.  
  8. InterSLIP is an extension for MacTCP which communicates with a device driver. All of the functions of InterSLIP Setup are available through calls to this device driver. The device driver is called .InterSLIP and is installed at system startup time by InterSLIP Control.
  9.  
  10. The following control calls may be useful to you. None of them move or purge memory. All calls must be made as immediate PBControl calls to the .InterSLIP driver. In all cases, csParam is treated as an array of five 32-bit values (referred to as csp[] in the following text), instead of the more usual array of ten 16-bit values.
  11.  
  12. csCode = 2    No parameters. Connects using the most recently selected configuration if not
  13.                                             already connected to something.
  14.  
  15. csCode = 3    No parameters. Disconnects from the SLIP gateway if connected.
  16.  
  17. csCode = 4    Reports the current connection status. No input parameters. 
  18.                                             Output parameters:
  19.                                             csp[0]: current link state (0 = idle, 1 = waiting for modem, 2 = dialing,
  20.                                             3 = logging in to gateway, 4 = up and running, 5 = hanging up)
  21.                                             csp[1]: message sequence number
  22.                                             csp[2]: message pointer
  23.                                             If the state has not changed since the last status report, but the message
  24.                                             sequence number has, the message pointer points to a C string containing the
  25.                                             last message from the CCL script.
  26.  
  27. csCode = 6    Reports the current configuration information. Input parameters:
  28.                                             csp[2]: pointer to Str255 to be filled in with input driver name
  29.                                             csp[3]: pointer to Str255 to be filled in with output driver name
  30.                                             csp[4]: pointer to Str255 to be filled in with current configuration name.
  31.                                             Output parameters:
  32.                                             csp[0]: speed (DCE rate in high word, DTE rate in low word)
  33.                                             csp[1]: port flags (0x0001 = hardware handshake, 0x0002 = RFC 1144)
  34.  
  35.  
  36.  
  37.  
  38. csCode = 7    Sets the current configuration information. Input parameters:
  39.                                             csp[0]: speed (DCE rate in high word, DTE rate in low word)
  40.                                             csp[1]: port flags (0x0001 = hardware handshake, 0x0002 = RFC 1144)
  41.                                             csp[2]: pointer to Str255 containing input driver name
  42.                                             csp[3]: pointer to Str255 containing output driver name
  43.                                             csp[4]: pointer to Str255 containing configuration name
  44.                                             No output parameters.
  45.  
  46.  
  47. The speed, port flags, and driver names are re-read from the configuration file when InterSLIP connects or reconnects.
  48.